package com.atguigu.gulimall.order.to;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.atguigu.gulimall.order.entity.OrderItemEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单创建TO
 * @author gcq
 * @Create 2021-01-06
 */
@Data
public class OrderCreateTo {
    /**
     * 订单对象
     */
    private OrderEntity order;
    /**
     * 多个订单项
     */
    private List<OrderItemEntity> orderItem;
    /**
     * 订单对应总价格
     */
    private BigDecimal payPrice;
    /**
     * 订单运费
     */
    private BigDecimal fare;
}